<template>
    <el-radio-group v-model="radio">
        <el-radio v-for="(val,name) in item" :key="name" :label="val">{{ name }}</el-radio>
    </el-radio-group>
</template>

<script>
export default {
    components: {

    },
    props: {
        item: {},
        initValue: {}
    },
    data () {
        return {
            radio: this.initValue
        }
    },
    computed: {

    },
    watch: {

    },
    created () {
        this.radio = (this.initValue + '') || '1'
    },
    mounted () {

    },
    methods: {

    }
}
</script>

<style scoped lang="stylus">
.el-radio-group
    margin 10px auto
.el-radio
    display block
    margin 15px
</style>
